package com.jjx.trainingapi.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jjx.trainingapi.common.BaseColumns;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author LoveHuahua
 * @date 2022年05月24日 1:10
 * @description believe in yourself
 */

/**
 * 新闻表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "dc_news")
public class DcNews extends BaseColumns {
    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 作者
     */
    @TableField(value = "author")
    private String author;

    /**
     * 分类id
     */
    @TableField(value = "category_id")
    private Integer categoryId;

    /**
     * 正文
     */
    @TableField(value = "content")
    private String content;

    /**
     * 文章url
     */
    @TableField(value = "url")
    private String url;

    public static final String COL_ID = "id";

    public static final String COL_TITLE = "title";

    public static final String COL_AUTHOR = "author";

    public static final String COL_CATEGORY_ID = "category_id";

    public static final String COL_CONTENT = "content";

    public static final String COL_URL = "url";

    public static final String COL_CREATE_BY = "create_by";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_LAST_UPDATE_BY = "last_update_by";

    public static final String COL_REMOVE_FLAG = "remove_flag";

    public static final String COL_LAST_UPDATE_TIME = "last_update_time";
}